				<div style="width:auto;clear:both">						
					<div id="network_sidebar">
						<form method=GET action="search">
							<label for="search">Search</label>
							<input type="text" id="search" class="search" />
						</form>
						<div class="title">
							Tags
						</div>
						
						<form method=POST action="/new_tag">
							<label for="tag_name">Add a New Tag</label>
							<input type="text" id="tag_name" name="tag_name" />
							<input type="hidden" id="redirect" name="redirect" value="/network"/>
						</form>
						
						<ul>
							{% for tag in tags %}
							<li><a href="?filter={{ tag }}">{{ tag }}</a> <a href="/remove_tag?tag_name={{ tag }}&redirect=/network"> (delete tag)</a></li>
							{% endfor %}
						</ul>
					</div>
					
					<div id="network_body">
					
						{% if error %}
						<h4 class="error">{{ error }}</h4>
						{% endif %}
						
						<h2>My Network</h2>
						
						{%if filter %}
						<div class="notice">
							Filter: {{ filter }}
							<a href="/network">Clear filter</a>
						</div>
						{% endif %}
						
						{% for user in users %}
						<div class="network_user">
							<div style="float:left;">
								<h2><a href="/profile?user={{ user.username }}">{{ user.name }}</a></h2>
								<div class="tags">
									<span class="label">Tags</span>
									{% for tag in user.tags %}
										<a href="?filter={{ tag }}">{{ tag }}</a>
									{% endfor %}
									<a href="/add_tags?user={{ user.username }}">Edit</a>
								</div>					
							</div>		
							<ul>
								<li><span class="label">Gender</span> {{ user.gender }}</li>
								<li><span class="label">Age</span> {{ user.age }}</li>
								<li><span class="label">Location</span> {{ user.city }}</li>																
							</ul>
							<div style="clear:both"></div>							
						</div>
						{% endfor %}
					
					</div>
				</div>
			</div>
	</body>
</html>
